package com.dtsheep.elasticsearch.es.document;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.Instant;

/**
 * DesignSummaryDocument
 *
 * <p>
 *     款式报表
 * </p>
 *
 * @author chuanbai
 * @date 2024/6/5
 */
@Document(indexName = "daily-design-summary")
public class DesignSummaryDocument {

    /**
     * id
     */
    @Id
    private Long id;

    @Field(type = FieldType.Long)
    private Long epsId;

    @Field(type = FieldType.Text)
    private String timeStr;

    @Field(type = FieldType.Long)
    private Instant timeTrue;

    /**
     * 款式id
     */
    @Field(type = FieldType.Long)
    private Long designId;

    /**
     * 仓库ID
     */
    @Field(type = FieldType.Long)
    private Long epsWarehouseId;

    /**
     * 入库数
     */
    @Field(type = FieldType.Long)
    private Long storageEntryNum;

    /**
     * 采购退货数
     */
    @Field(type = FieldType.Long)
    private Long supplierReturnNum;

    /**
     * 订单售出数
     */
    @Field(type = FieldType.Long)
    private Long storageOutputNum;

    /**
     * 销售退货数
     */
    @Field(type = FieldType.Long)
    private Long orderReturnNum;

    /**
     * 借入数量
     */
    @Field(type = FieldType.Long)
    private Long  rentEntryNum;

    /**
     * 借出数量
     */
    @Field(type = FieldType.Long)
    private Long rentOutputNum;
}
